<template>
  <dv-border-box-1 class="con">
    <div class="type">{{title}}</div>
    <dv-digital-flop :config="config" style="width:100%;font-size:20px;margin-top:-20px" />
  </dv-border-box-1>
</template>

<script>
export default {
  name: 'statistic',
  props: {
    title: {
      type: String,
      default: 's'
    },
    num: {
      type: Number,
      default: 0
    }
  },
  data () {
    return {
      config: {
        number: [999],
        content: '{nt}个'
      }
    }
  },
  created () {
    this.config.number = [this.num]
    // this.title = this.title
  }
}
</script>

<style lang="sass" scoped>
.con
  width: 100%
  height: 100%
  text-align: center
  vertical-align: middle
  .type
    font-size: 22px
</style>>
